package com.xxjqr.rbac.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum OperatorTypeEnum implements BaseEnum {
    /** * 其它 */
    OTHER(0,"其他"),
    /** * 后台用户 */
    MANAGE(1,"后台用户"),
    /** * 手机端用户 */
    MOBILE(2,"手机端用户");

    @EnumValue
    private Integer code;
    @JsonValue
    private String desc;

    @Override
    public String getName() {
        return name();
    }
}